package com.briup.ch07;

/**
 * @Author briup-adam
 * @Date 2023/10/10 上午10:59
 * @Description
 **/

public class InnerClassDemo2 {
    public static void main(String[] args) {
        System.out.println(Outer2.Inner2.c);//3
        System.out.println(new Outer2.Inner2().b);//20
    }
}
class Outer2{
    int b=10;
    static  int d=5;
    Outer2(){
//        System.out.println(b);//10
//        System.out.println(new Inner2().b);//20
//        System.out.println(Inner2.c);//3
    }
    static class Inner2{
       static int c=3;
        int b=20;
        static int d=6;
        static{
            System.out.println(d);//6
            System.out.println(Outer2.d);//5
        }
        Inner2(){
            System.out.println(b);//20
            System.out.println(new Outer2().b);//10

        }

    }
}
